import React, { useState, useEffect, useRef } from 'react';
import styles from './index.less';
// import PDF from 'react-pdf-js';

export default class extends React.Component {
  render() {
    return (
      <div className={styles.page}>
        {/* <PDF file={'https://tongtu-oss.oss-cn-beijing.aliyuncs.com/baf2bb9761014c64941ec98df8ca795f.pdf?Expires=1677555188&OSSAccessKeyId=LTAI5tFzfFJXyinTXzF6T8r4&Signature=kvZxOX6P68CYd8rProitnCI53IY%3D&response-content-type=application%2Foctet-stream'}/> */}
        {/* <PDF
          file={
            'https://tongtu-oss.oss-cn-beijing.aliyuncs.com/8f9c63cace254f07986daf8aca07ce65.pdf?Expires=1677567623&OSSAccessKeyId=LTAI5tFzfFJXyinTXzF6T8r4&Signature=nnYKxOmF2CFuWQlwGSZL9MHrUPM%3D&response-content-type=application%2Foctet-stream'
          }
          page={1}
          onDocumentLoadFail={() => {
            console.log('发生错误了');
          }}
          onDocumentComplete={pages => {
            console.log('onDocumentComplete');
            console.log(pages);
          }}
        /> */}
      </div>
    );
  }
}
